home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / misc / freetips / freetips.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-06  |  290.1 KB  |  377 lines

  1. Freetips
  2. *Free Tips, Tricks, and Cheap Entertainment
  3. Form15Y
  4. Panel3D3
  5. SSPanel
  6. Check3D3
  7. SSCheck
  8. Vote #3
  9. Check3D2
  10. SSCheck
  11. Vote #2
  12. Check3D1
  13. SSCheck
  14. Vote #1
  15. Command3D6
  16.     SSCommand
  17. wwwwwwwp
  18. wwwwwwwwwwwp
  19. Command3D5
  20.     SSCommand
  21. wwwwwwwwwwwwwww
  22. wwwwwwwwwwwwwww
  23. Command3D4
  24.     SSCommand
  25. Label16
  26. I remember that sick feeling I got when I finally saw the ad for the custom control that would let me add "Help Tips" to my programs, and then saw the price for the VBX! No thanks!                                                                                                                                                                           It's amazing what a few label controls and some basic use of the MouseMove event can do for a poor, well-meaning slob like myself! (This is so easy it's almost embarrasing!)                                                               Move the cursor over the controls to see what I mean.
  27. Label15
  28. I will if you will. You first!
  29. Label14
  30. I'll go home now. (Sob)
  31. Label13
  32. You really really like me!
  33. Label12
  34. What exactly are you saying?
  35. Label11
  36. I actually LIKED the 5.25 disk!
  37. Label9
  38. *I don't think you're funny at all, Mister!
  39. Panel3D2
  40. SSPanel
  41. Command3D3
  42.     SSCommand
  43. Button D
  44. Command3D2
  45.     SSCommand
  46. Button B
  47. Command3D1
  48.     SSCommand
  49. Button A
  50. Panel3D5
  51. SSPanel
  52. Label8
  53. ?Run the cursor over the command buttons and watch the help bar.
  54. Label10
  55. The "Help Bar" is yet another way to offer users of your increadible new program tips, hints, or cheap help. It's also extremely easy to do.                                                                                                            SImply add a 3D panel to the bottom or top of the screen and then, just like the "Tip" rip-off, you attach code to the MouseMove event of whichever control you care to offer help for. (Can I get in trouble for this?)
  56. Panel3D1
  57. SSPanel
  58. Command3D11
  59.     SSCommand
  60. Command3D11
  61. Command3D8
  62.     SSCommand
  63. Command3D7
  64.     SSCommand
  65. Click Here To Start
  66. Label19
  67. Click on Arnie!
  68. Arial
  69. Label18
  70. For this one, you definately want to check out the general declarations section of the form to see how to call the MMSYSTEM.DLL that makes us look so damn great. Warning: Playing this demo without a sound card will cause the monitor to explode, showering your body with shards of broken glass! (Really!)
  71. Label17
  72. Multimedia is cool. And Visual Basic is a most excellent tool to create outrageous multimedia apps with... if you can figure it out! The books tell you practically nothing. It's a conspiracy! A conspiracy, I tell you! No! No! I LOVED that little dog! I swear... sorry. What was I saying? Oh. Yeah. This little demo will show you how to play MIDI and WAV files simultaneously without the MCI control, all while standing on your head! (I can't actually do that, but you can try if you really want to. Just don't let anybody see you doing it.)
  73. Panel3D4
  74. SSPanel
  75. Label7
  76. I have, on the other hand, been blessed (?) with the questionable ability to fake just about anything I want to, if the payoff is rewarding and I do know I won't get caught or castrated. So...                                                                                                                                            These tabs are simply bitmaps stacked on Image controls and toggled by clicking the appropriate label attached to each tab header. The bitmaps were drawn in Paintbrush and you can play with the source code to get a clear enough idea that you can tell your friends that you wrote the whole thing yourself! Pretty painless, huh?
  77. Label6
  78. Although there are many third party custom controls available to afford the VB programmer this option, many are expensive or cumbersome, and add the extra complexity of yet another VBX to deal with! Still, There are other amazing programmers who are skilled enough to create the tab metaphor with code alone, but I, not being one of them, have a difficult time understanding some of the advanced logic. (I try to be honest!)
  79. Label5
  80. Notebook style "tabs" have become extremely popular mostly due to their implementation throughout some of the newer word processor and spreadsheet applications.
  81. Label20
  82. (Demo of the Notebook Style Tab "Control"
  83. MS Sans Serif
  84. Label4
  85. Sound
  86. MS Sans Serif
  87. Label3
  88. Help Bar
  89. MS Sans Serif
  90. Label2
  91.     Help Tips
  92. MS Sans Serif
  93. Label1
  94. MS Sans Serif
  95. Image4
  96. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww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wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  124. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  125. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  126. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  127. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  128. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  129. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  130. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  131. cmd_quit
  132. &Exit
  133. cmd_tabs
  134. &Tabbed Notebook
  135. cmd_fly
  136. &Flyover Help Tips
  137. cmd_hint
  138.     &Help Bar
  139. .    cmd_multi
  140. &Multimedia
  141. /    cmd_notes
  142. &Notes
  143. 0    cmd_about
  144. &About
  145.     Form_Load
  146. Image1M
  147. Visible
  148. Image2
  149. Image3a
  150. Image4C
  151. WindowState
  152. Label1_Click
  153. Label2_Click
  154. Label3_Click
  155. Label4_Click
  156. Panel3D1
  157. Panel3D2
  158. Panel3D3W
  159. Panel3D4
  160. Label5_Click
  161. Image4_Click
  162. Label5s
  163. Label6%
  164. Label77
  165. Panel4+
  166. Panel3D3_DragDrop
  167. Source
  168. Control
  169. Panel3D5_DragDrop
  170. Command3D1_Click
  171. Command3D1_MouseMove
  172. Button(
  173. Shift
  174. Panel3D5
  175. Caption1
  176. Command3D2_ClickE
  177. Command3D2_MouseMove
  178. Command3D3_Click
  179. Command3D3_MouseMove8
  180. Panel3D2_DragDrop
  181. Panel3D2_MouseMoveE
  182. Form_MouseMove
  183. Command3D5_Click
  184. Label9_Click
  185. Label11_Click
  186. Label12_Click9
  187. Command3D4_Click
  188. Command3D4_MouseMovep
  189. Label9M
  190. Command3D5_MouseMovei
  191. Label11?
  192. Command3D6_Clickp
  193. Command3D6_MouseMove
  194. Label12
  195. Panel3D3_MouseMove
  196. Check3D1_Click
  197. Value
  198. Check3D1_MouseMove
  199. Label13
  200. Check3D2_Click
  201. Check3D2_MouseMove
  202. Label14    
  203. Check3D3_Click
  204. Check3D3_MouseMove
  205. Label15
  206. Image1_ClickT
  207. Panel3D1_DragDrop
  208. Label1
  209.     ForeColor
  210. Label2W
  211. Label3
  212. Label4
  213. Command3D7_Click
  214. Command3D7
  215. Command3D8
  216. Command3D9
  217. Command3D10T
  218. Label19_Click
  219. Label19I
  220. Command3D1.
  221. Command3D8_ClickB
  222. Command3D9_Click
  223. Command3D10_Clickc
  224. SND_SYNC!
  225.     SND_ASYNC
  226. SND_NODEFAULT
  227. SND_MEMORY
  228. SND_NOSTOPS
  229. sndPlaySound
  230. WavFileM
  231. wFlags
  232. mciSendString
  233. lpstrCommandStringk
  234. lpstrRtnString
  235. wRtnLength
  236.     hCallback
  237. Dummy
  238. Panel3D1_Click
  239. cmd_quit_Click
  240. Label10e
  241. Label14_Clickv
  242. Label15_Click
  243. Label13_Click
  244. cmd_about_Click
  245. About
  246. modal;
  247. cmd_notes_Click
  248. Picture
  249. Command3D8_GotFocus
  250. Command3D11
  251. Command3D11_Click
  252. Label20_Click
  253. Label20w
  254. Screen
  255. MousePointerZ
  256. cmd_tabs_Click
  257. cmd_fly_Click
  258. property
  259. Labels
  260. staying
  261. cmd_hint_Click
  262. cmd_multi_Click
  263. MMSYSTEM.DLL
  264. MMSystem
  265. Check3D1_MouseMove
  266. Check3D2_MouseMove
  267. Check3D3_MouseMove
  268. cmd_about_Click
  269. cmd_fly_Click
  270. 1) Add program components to the form.
  271. 2) Add Labels under each component.
  272. 3) Set Label Backcolor property to yellow.
  273. 4) Set Label Visible property to False.
  274. 5) In the Program components MouseMove
  275.      event, set corresponding Labels 
  276.      Visible property to True.
  277. 6) You may want to add redundant code
  278.      to the MouseMove event of the Form 
  279.      to keep Labels from staying visible.
  280. Flyover Help Balloons
  281. cmd_hint_Click
  282. 1) Add 3D Panel to the bottom of the form.
  283. 2) In the Program components MouseMove
  284.      event, set the Panels Caption property
  285.      to display help text.
  286. 3) In the Forms MouseMove event, add
  287.      code to set the Panels Visible property
  288.      False.
  289. Help Bar
  290. cmd_multi_Click
  291. 1) Declare the sndPlaySound 
  292.      and mciSendString functions in
  293.      the general declarations section
  294.      of the main Form (See example).
  295. 2) Use mciSendString to play MIDI files.
  296. 3) Use sndPlaySound to play WAV files.
  297. 4) Check the Constant listings to see
  298.      which flags are used to control the
  299.      way the WAV files are played.
  300. Multimedia Functions
  301. cmd_notes_Click
  302. Please note that, in creating this little demo, I have completely neglected error trapping. Also, some examples will display differently should the user have an EGA monitor. You should take these issues into consideration should you decide to use any of these ideas.
  303. There is one thing...
  304. cmd_quit_Click
  305. cmd_tabs_Click
  306. 1) Add an Image Control to the form.
  307. 2) Place a Tab bitmap on the Image Control.
  308. 3) Draw and size a 3D Panel on the Bitmap.
  309. 4) Add other components as neccessary.
  310. 5) Repeat for other tabbed pages.
  311. Tabbed Notebook
  312. Command3D1_Click
  313. I thought I told you that this button didn't do nuthin! Now click OK and get back to work!
  314. What are you doing?!
  315. Command3D1_MouseMove
  316. This button don't do nuthin...!
  317. Command3D10_Click
  318. Boing.wav
  319. Fish.wav
  320. Command3D2_Click
  321. Alright, that does it! You're getting a spanking!
  322. Oh, oh. Dad's awake!
  323. Command3D2_MouseMove
  324. This button don't do nuthin neither!
  325. Command3D3_Click
  326. I'm holding Button C hostage until Bill Gates admits that I'm his illegitimate son and takes me home where I belong! (Think he'll fall for it? Ssssshhhhhh.....)
  327. News Flash!
  328. Command3D3_MouseMove
  329. What the hell happened to Button C...?!
  330. Command3D4_Click
  331. You know, there may be some people who don't appreciate what I'm doing here. Hhhhmmmmmmm. (Hee hee!)
  332. Don't shoot the messenger!
  333. Command3D4_MouseMove
  334. Command3D5_Click
  335. There was just something about those 5.25 disks. The soft cover, the pliable texture, the...oh,oh. Excuse me for a minute...
  336. The good old days?
  337. Command3D5_MouseMove
  338. Command3D6_Click
  339. I hope you're having as much fun as I am here! (You are, aren't you?!!!)
  340. All in good fun...
  341. Command3D6_MouseMove
  342. Command3D7_Click
  343. Arnie.Bmp
  344. Play Dig.Mid
  345. Command3D8_Click
  346. Arnold.Wav
  347. Arnie.Bmp
  348. Command3D8_GotFocus
  349. Arnie2.Bmp
  350. Command3D9_Click
  351. Boing.wav
  352. Dog.wav
  353. Form_Load
  354. Form_MouseMove
  355. Label1_Click
  356. Show Tab1 Bitmap
  357. Show Tab Panel and Controlss
  358. Turn Label Caption Bluer
  359. Blackl
  360. Blackl
  361. Blackl
  362. Sets the Multimedia screen back to beginning
  363. Close Dig.Mid
  364. Close the MCI system and reset
  365. Demo of the Notebook Style Tab "Control"
  366. Set Caption for Main Screen
  367. Label2_Click
  368. Close Dig.Mid
  369. Demo of the Help Tip "Control"
  370. Label3_Click
  371. Close Dig.Mid
  372. Demo of the Help Bar "Control"
  373. Label4_Click
  374. Demo of Multimedia Sound Functions
  375. Panel3D2_MouseMove
  376. Panel3D3_MouseMove
  377.